﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Documents;

namespace WFP_Sandbox.Model
{
    public class MainModel
    {

        public List<GameValue> GameValues { get; set; }
    
        

        public MainModel ()
        {
            init_MainModel();

        }

        private void init_MainModel()
        {
            var tmpValues = new List<GameValue>();
            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-20,0,0,0)),
                GameNumber = "5",
                Player = "Reiner Zufall",
                TeeNumber = "20",
                Sport = "Badminton",
                GameResult = "5"
            });

            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-10, 0, 0, 0)),
                GameNumber = "7",
                Player = "Reiner Zufall",
                TeeNumber = "20",
                Sport = "Golf",
                GameResult = "3"
            });
            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-20, 0, 0, 0)),
                GameNumber = "5",
                Player = "Reiner Zufall",
                TeeNumber = "20",
                Sport = "Golf",
                GameResult = "8"
            });
            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-20, 0, 0, 0)),
                GameNumber = "5",
                Player = "Reiner Zufall",
                TeeNumber = "20",
                Sport = "Badminton",
                GameResult = "10"
            });
            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-30, 0, 0, 0)),
                GameNumber = "3",
                Player = "Hart Mut",
                TeeNumber = "11",
                Sport = "Golf",
                GameResult = "2"
            });
            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-25, 0, 0, 0)),
                GameNumber = "4",
                Player = "Hart Mut",
                TeeNumber = "11",
                Sport = "Golf",
                GameResult = "8"
            });

            tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-25, 0, 0, 0)),
                GameNumber = "4",
                Player = "Hart Mut",
                TeeNumber = "11",
                Sport = "Badminton",
                GameResult = "6"
            }); tmpValues.Add(new GameValue
            {
                GameDate = DateTime.Today.Add(new TimeSpan(-15, 0, 0, 0)),
                GameNumber = "6",
                Player = "Hart Mut",
                TeeNumber = "11",
                Sport = "Badminton",
                GameResult = "9"
            });
            
            GameValues=tmpValues;
        }
    }
}
